package com.hoshiicloud.shxping.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @author yangcheng
 * @version 1.0
 * @title: CartDetailVO
 * @description: 购物车购物详情VO
 * @date 2019/6/11 16:08
 * @mail maiboyc@163.com
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel
public class CartDetailVO implements Serializable {

    private static final long serialVersionUID = 619416066223382275L;

    @ApiModelProperty(value = "购物车ID")
    private Long recId;

    @ApiModelProperty(value = "平台ID")
    private Long platformId;

    @ApiModelProperty(value = "门店ID")
    private Long storeId;

    @ApiModelProperty(value = "用户id")
    private Long userId;

    @ApiModelProperty(value = "来源平台或门店spu_id")
    private Long spuId;

    @ApiModelProperty(value = "来源平台或门店sku_id")
    private Long skuId;

    @ApiModelProperty(value = "商品的名称")
    private String spuTitle;

    @ApiModelProperty(value = "sku组合标题")
    private String skuTitle;

    @ApiModelProperty(value = "属性json对象")
    private String spuExtendProp;

    @ApiModelProperty(value = "规格json对象")
    private String spuExtendSpec;

    @ApiModelProperty(value = "商品售价")
    private BigDecimal goodsPrice;

    @ApiModelProperty(value = "sku属性json对象")
    private String skuExtendProp;

    @ApiModelProperty(value = "商品的购买数量，在购物车时，实际库存不减少")
    private Long goodsQuantity;

    @ApiModelProperty(value = "ctivity 的id")
    private Integer activityId;

    @ApiModelProperty(value = "状态   0-失效 1-有效")
    private Integer status;

    @ApiModelProperty(value = "是否已经屏蔽或删除")
    private Integer deleted;

    @ApiModelProperty(value = "建立时间")
    private LocalDateTime createdtime;

    @ApiModelProperty(value = "制单人")
    private String createdby;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updatedtime;

    @ApiModelProperty(value = "更新人")
    private String updatedby;

}
